Expander: get_label() return is nullable
authorDaniel Boles <dboles@src.gnome.org>
Fri, 15 Sep 2017 17:24:24 +0000 (18:24 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Fri, 15 Sep 2017 17:25:47 +0000 (18:25 +0100)
Also, use gchar to match the header.

gtk/gtkexpander.c

index 6e9b4305a8b809a130d5e9686b49ab4934b7fc76..1262363044afa92cbb6b72b1aff594f533ef5928 100644 (file)
@@ -1120,12 +1120,12 @@ gtk_expander_set_label (GtkExpander *expander,
  * be avoided by fetching the label text directly from the label
  * widget.
  *
- * Returns: The text of the label widget. This string is owned
+ * Returns: (nullable): The text of the label widget. This string is owned
  *     by the widget and must not be modified or freed.
  *
  * Since: 2.4
  */
-const char *
+const gchar *
 gtk_expander_get_label (GtkExpander *expander)
 {
   GtkExpanderPrivate *priv;